﻿
<script>
    var model = avalon.define({
        $id: "LSGLADD", 
        modelData: { "LS_LSXM": "", "LS_LSLXFS": "", "LS_Type": "培训机构", "LS_ZYKC": "", "LS_Address": "", "LS_LSTP": "", "FileS": "", "LS_LSJS": "", "LS_BeiZhu": "" }
    });
    function getdata() {
        var modelValue = JSON.stringify(model.modelData.$model);
        return { Action: "ADDLSGL", P1: modelValue };
    }

    var strId = ComFunJS.getQueryString("ID");
    avalon.ready(function () { 
        if (strId != null) {
            $.getJSON('/API/FTAPI.ashx?Action=GETLSGLMODEL', { P1: strId }, function (resultData) {
                if (resultData.ErrorMsg == "") {
                    model.modelData = resultData.Result;
                }
            })
        }
    })
</script>
<div class="form-horizontal" ms-controller="LSGLADD">
    <div class="form-group">
        <label class="col-xs-2 control-label"><span class="Required">*</span>老师名称</label>
        <div class="col-xs-3">
            <input type="text" value="" ms-duplex="modelData.LS_LSXM" class="form-control szhl_require" />
        </div>
        <label class="col-xs-2 control-label"> <span class="Required">*</span>老师类别 </label>
        <div class="col-xs-3">
            <select ms-duplex="modelData.LS_Type" class="form-control">
                <option>培训机构</option>
                <option>大学老师</option>
                <option>兼职老师</option>
                <option>社会老师</option>
            </select>
        </div> 
    </div>
    <div class="form-group">
        <label class="col-xs-2 control-label"><span class="Required">*</span>老师联系方式</label>
        <div class="col-xs-3">
            <input type="text" value="" ms-duplex="modelData.LS_LSLXFS" class="form-control szhl_require" />
        </div>
        <label class="col-xs-2 control-label">主要课程</label>
        <div class="col-xs-3">
            <input type="text" value="" ms-duplex="modelData.LS_ZYKC" class="form-control " />
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-2 control-label"><span class="Required">*</span>地点</label>
        <div class="col-xs-3">
            <input type="text" value="" ms-duplex="modelData.LS_Address" class="form-control " />
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-2 control-label"><span class="Required">*</span>老师图片</label>
        <div class="col-xs-8">
            <input type="text" value="" ms-duplex="modelData.LS_LSTP" class="form-control szhl_Upload" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-2 control-label">附件</label>
        <div class="col-xs-8">
            <input type="text" value="" class="span2  szhl_Upload form-control" ms-duplex="modelData.Files" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-2 control-label">老师介绍</label>
        <div class="col-xs-8"> 
            <textarea id="conLSJS" ms-duplex="modelData.LS_LSJS" class="szhl_UEEDIT form-control "></textarea> 
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-2 control-label">备注</label>
        <div class="col-xs-8">
            <textarea id="conRemark" ms-duplex="modelData.LS_BeiZhu" class="szhl_UEEDIT form-control "></textarea>
        </div>
    </div> 
</div>
